package safari.model.free;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import safari.model.common.SearchVO;

public interface FreeBoardDao {
	public void freeBoardRegister(FreeBoardVO fvo) throws SQLException;
	public void freeBoardUpdate(FreeBoardVO fvo) throws SQLException;
	public FreeBoardVO freeBoardUpdateView(int no) throws SQLException;
	public void freeBoardDelete(int no) throws SQLException;
	public FreeBoardVO freeBoardShowContent(int no) throws SQLException;
	public void freeBoardUpdateHits(int no)  throws SQLException;
	public List<FreeBoardVO> freeBoardGetAllList(int no) throws SQLException;
	public int freeBoardGetTotalContentCount()  throws SQLException;
	
	//reply 답글 메소드
	public void freeBoardReplyRegister(FreeBoardVO fvo)  throws SQLException;
	public FreeBoardVO freeBoardReplyView(int no) throws SQLException;
	public void freeBoardReplyUpdate(FreeBoardVO fvo)  throws SQLException;
	public void freeBoardReplyDelete(int no)  throws SQLException;
	
	//comment 덧글 메소드(ajax)처리
	public void freeBoardCommentRegister(FreeBoardCommentVO fbcvo)  throws SQLException;
	public FreeBoardCommentVO freeBoardCommentUpdateView(int no) throws SQLException;;
	public void freeBoardCommentUpdate(FreeBoardCommentVO fbcvo) throws SQLException;
	public void freeBoardCommentDelete(int no)  throws SQLException;
	public List<FreeBoardCommentVO> freeBoardGetAllComment(FreeBoardNoAndPage board ) throws SQLException;
	public FreeBoardCommentVO freeBoardShowComment(int comf) throws SQLException;
	public  int freeBoardCommentGetTotalCount(int comf)throws SQLException;
	
	
	//검색
	public  List<FreeBoardVO> freeBoardSearchKeyword(SearchVO svo)throws SQLException;
	//검색한 게시물의 갯수를 받아온다.
	public int freeBoardSearchKeywordCount(SearchVO svo)throws SQLException;
}
